package com.wmyg.antifake.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @author 王卓逸
 * @program TODO
 * @description TODO
 * @create 2019-04-19
 */
@Data
public class PhoneCheckDto {

    @NotBlank(message = "手机号不能为空")
    @Length(min = 11, max = 11, message = "手机号码不正确")
    private String phone;

    @NotBlank(message = "短信验证码格式错误")
    @Length(min = 6, max = 6, message = "短信验证码格式错误")
    private String smsCode;

}
